package YAVMM::Log::Dispatch::Config::Plugin::Screen;
use Moose::Role;

sub get_screen_attrs {
    my $self = shift;

    return {
	class     => 'Log::Dispatch::Screen',
	min_level => $self->settings->get('log screen', 'min_level') || 'info',
	stderr    => 1,
	newline   => 1,
	format    => '[%d] [%p] %m',
    }
}

1;

__END__

=head1 NAME

YAVMM::Log::Dispatch::Config::Plugin::Screen - Configure screen log dispatcher.

=head1 SEE ALSO

L<Log::Dispatch::Screen>
